import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'ant-design:setting-outlined',
      keepAlive: true,
      order: 1000,
      title: $t('系统设置'),
    },
    name: 'settings',
    path: '/setting',
    children: [
      {
        meta: {
          icon: 'ant-design:user-outlined',
          title: $t('用户管理'),
        },
        name: 'user',
        path: 'user',
        component: () => import('#/views/sys/user/index.vue'),
      },
      {
        meta: {
          icon: 'ant-design:team-outlined',
          title: $t('角色管理'),
        },
        name: 'role',
        path: 'role',
        component: () => import('#/views/sys/role/index.vue'),
      },
    ],
  },
];

export default routes;
